package org.aeon.foa.util;

import java.time.LocalDate;
import java.time.YearMonth;

/**
 * @projectName: easytaskkit
 * @package: org.aeon.foa.util
 * @className: DataUtil
 * @author: MissingAeon
 * @date: 2024/1/2 18:00
 * @description:
 */
public class DataUtil {
    public static int getDay() {
        LocalDate currentDate = LocalDate.now();
        // 获取当前月份
        YearMonth currentYearMonth = YearMonth.from(currentDate);
        // 获取当前月份的天数
        return currentYearMonth.lengthOfMonth();
    }

}
